package com.qianmi.cloud.mapper;

import com.qianmi.cloud.bean.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @Description
 * @Date: 1/18/22 15:53
 * @Created by xiaocai
 */
public interface SysUserRepository extends JpaRepository<SysUser, Integer>, JpaSpecificationExecutor<SysUser> {

    /**
     * 根据username查询用户信息
     * @param username
     * @return
     */
    SysUser findByUsername(String username);
}
